/***********************************************************
*                                                          *
*  Check if the cIOS used is a d2x/Waninkoko/Hermes cIOS   *
*                                                          *
* Source code from USB LOADER GX .Modifications by xFede   *
*                                                          *
***********************************************************/

#include <gccore.h>

typedef struct _iosinfo_t
{
        u32 magicword;                    //0x1ee7c105
        u32 magicversion;                  // 1
        u32 version;                            // Example: 5
        u32 baseios;                            // Example: 56
        char name[0x10];                        // Example: d2x
        char versionstring[0x10];   // Example: beta2
} __attribute__((packed)) iosinfo_t;

bool IsHermes(s32 ios);
bool IsWaninkoko(s32 ios);
bool IsD2X(s32 ios);
iosinfo_t *GetIOSInfo(s32 ios);
